﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace logic
{
    public class purchaseWeek
    {
        public static DataTable listWithCompanyAndYear(int companyId,int year)
        {
            return PurchaseWeek.listWithCompanyAndYear(companyId,year);
        }
        public static bool insert(int companyId,int year,int createAdminId)
        {
            return PurchaseWeek.insert(companyId,year,createAdminId);
        }

        public static PurchaseWeekEntity getById(int bpwdid)
        {
            return PurchaseWeek.getById(bpwdid);
        }

        public static void updateStateByAudit(int bpwdid, int adminId,string status)
        {
            PurchaseWeek.updateStateByAudit(bpwdid, adminId,status);
        }
    }
}